<%@ page import="wt.entity.expertInfo.ExpertBase" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>


<form class="form-horizontal row">
    <div class="col-sm-11">
        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">姓　　名：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.name}</p>
            </div>
        </div>
        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">身份证号：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.idCard}</p>
            </div>
        </div>
        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">手机号码：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.phone}</p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">出生日期：</label>
            <div class="col-sm-6">
                <p class="form-control-static"><fmt:formatDate value="${data.birthday}" pattern="yyyy-MM-dd"/></p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">性　　别：</label>
            <div class="col-sm-6">
                <p class="form-control-static">
                    <c:choose>
                        <c:when test="${data.sex==0}">女</c:when>
                        <c:when test="${data.sex==1}">男</c:when>
                    </c:choose>
                </p>
            </div>
        </div>


        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">电子邮箱：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.email}</p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">银行卡号：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.bankCard}</p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">开&nbsp;&nbsp;户&nbsp;&nbsp;行：</label>
            <div class="col-sm-6">
                <p class="form-control-static">${data.bankName}</p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">状　　态：</label>
            <div class="col-sm-6">
                <p class="form-control-static">
                    <c:choose>
                        <c:when test="${data.retire==0}">在职</c:when>
                        <c:when test="${data.retire==1}">退休</c:when>
                    </c:choose>
                </p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">是否教师：</label>
            <div class="col-sm-6">
                <p class="form-control-static">
                    <c:choose>
                        <c:when test="${data.teacher==0}">不是</c:when>
                        <c:when test="${data.teacher==1}">是</c:when>
                    </c:choose>
                </p>
            </div>
        </div>


        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">是否外省：</label>
            <div class="col-sm-6">
                <p class="form-control-static">
                    <c:choose>
                        <c:when test="${data.outLander==0}">省内</c:when>
                        <c:when test="${data.outLander==1}">省外</c:when>
                    </c:choose>
                </p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">最高学历：</label>
            <div class="col-sm-6">
                <p class="form-control-static">
                    <c:choose>
                        <c:when test="${data.education==0}">博士</c:when>
                        <c:when test="${data.education==1}">博士研究生</c:when>
                        <c:when test="${data.education==2}">硕士</c:when>
                        <c:when test="${data.education==3}">硕士研究生</c:when>
                        <c:when test="${data.education==4}">本科</c:when>
                        <c:when test="${data.education==5}">大专</c:when>
                        <c:when test="${data.education==6}">中专</c:when>
                        <c:when test="${data.education==7}">高中</c:when>
                    </c:choose>
                </p>
            </div>
        </div>


        <%--retire: {0: "在职", 1: "退休"},--%>
        <%--outLander: {0: "省内", 1: "省外"},--%>
        <%--boole: {0: "不是", 1: "是"},--%>
        <%--sex: {0: "女", 1: "男"},--%>
        <%--live: {0: "停用", 1: "启用"},--%>
        <%--operationType: {0: "删除", 1: "添加", 2: "修改", 3: "查询"},--%>
        <%--menuType: {0: "菜单", 1: "按钮"},--%>
        <%--education: {0: "博士", 1: "博士研究生", 2: "硕士", 3: "硕士研究生", 4: "本科", 5: "大专", 6: "中专", 7: "高中"},--%>
        <%--expertType: {0: "审查员", 1: "高级审查员", 2: "高级评审员", 3: "评审员"},--%>
        <%--rank: {0: "正高", 1: "副高", 2: "中级", 3: "其他"},--%>
        <%--belongTo: {0: "企业库", 1: "专家库", 2: "员工库"},--%>
        <%--leaderCrew: {0: "组员", 1: "组长"},--%>
        <%--companyProperty: {0: "企业", 1: "机关", 2: "事业单位", 3: "社会团体", 4: "其他"},--%>
        <%--expertGrade: {AA: "AA", A: "A", B: "B", C: "C"},--%>
        <%--signState: {0: "未到", 1: "到"}--%>
        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">职　　称：</label>
            <div class="col-sm-6">
                <p class="form-control-static">
                    <c:choose>
                        <c:when test="${data.rank==0}">正高</c:when>
                        <c:when test="${data.rank==1}">副高</c:when>
                        <c:when test="${data.rank==2}">中级</c:when>
                        <c:when test="${data.rank==3}">其他</c:when>
                    </c:choose>
                </p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="col-sm-5 control-label">是否启用：</label>
            <div class="col-sm-6">
                <p class="form-control-static">
                    <c:choose>
                        <c:when test="${data.live==0}">停用</c:when>
                        <c:when test="${data.live==1}">启用</c:when>

                    </c:choose>
                </p>
            </div>
        </div>

        <div class="form-group col-sm-6">
            <label class="control-label col-sm-5">照　　片：</label>
            <div class="col-sm-6">
                <div class="form-control-static">
                    <c:choose>
                        <c:when test="${data.headImg!=null}">
                            <img style="height: 110px;min-width: 110px" class="img-thumbnail"
                             src="downloadFileByPath?pathName=${data.headImg}">
                        </c:when>
                        <c:otherwise>
                            <div style="height: 110px;min-width: 110px" class="img-thumbnail">无图片</div>
                        </c:otherwise>
                    </c:choose>
                </div>
            </div>
        </div>
    </div>

    <shiro:hasPermission name="expertInfo:adminEdit:edit">
    <div class="col-sm-1">
        <button style="margin-left:-5px" type="button" id="btn_update_expertBase_data" class="btn btn-default"><span
                class="glyphicon glyphicon-edit"></span> 修改
        </button>
    </div>
    </shiro:hasPermission>
</form>


<script>
    $("#btn_update_expertBase_data").click(function () {
        $('#modal_ajax').modal({
            backdrop: 'static',
            keyboard: false,
            show: true,
            remote: 'expertInfo/adminEdit/expertBase/editDlg?id=${data.id}'
        });
    });
</script>


